package spider.zookeeper.node;

import java.io.Serializable;

/**
 * Node
 *
 * @author Archx[archx@foxmail.com]
 * @date 2017/4/7.
 */
public class Node implements Serializable {

    private static final long serialVersionUID = -8607815546025664855L;

    /**
     * 节点标识
     */
    private String nodeId;

    /**
     * url链接地址
     */
    private String nodeUrl;

    /**
     * 繁忙标识
     */
    private boolean busy;

    /**
     * 不可用标识
     */
    private boolean unavailable;

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getNodeUrl() {
        return nodeUrl;
    }

    public void setNodeUrl(String nodeUrl) {
        this.nodeUrl = nodeUrl;
    }

    public boolean isBusy() {
        return busy;
    }

    public void setBusy(boolean busy) {
        this.busy = busy;
    }

    public boolean isUnavailable() {
        return unavailable;
    }

    public void setUnavailable(boolean unavailable) {
        this.unavailable = unavailable;
    }
}
